package Hot100.Easy.LC461;

import java.sql.Array;
import java.util.ArrayList;
import java.util.List;

public class LC461 {
    public static void main(String[] args){

    }


    public int hammingDistance(int x, int y) {
        int s = x ^ y, ret = 0;
        while (s != 0) {
            ret += s & 1;
            s = s >> 1;
        }
        return ret;
    }

}
